package com.imooc.log.util

import com.ggstar.util.ip.IpHelper

/**
  * Created by zghgchao 2017/12/25 12:35
  * IP解析工具类
  */
object IpUtils {

  def getCity(ip:String)={
    IpHelper.findRegionByIp(ip)
  }

  def main(args: Array[String]): Unit = {
    println(getCity("202.96.134.133"))//广东省
//    println(getCity("58.30.15.255"))//北京市
  }
}
